package com.raising.modules.sys.entity;

import com.raising.framework.entity.BaseEntity;

/**
 * 提示实体类
 * @author gaoy
 */
public class SysTipVo extends BaseEntity<SysTipVo> {

	private static final long serialVersionUID = 1L;
	/**
	 * 资源名称
	 * */
	private String name;
	/**内容
	 * */
	private String content;

	/**备注
	 * */
	private String remarks;
	/**
	 * 父编号
	 * */
	private String parentId;
	/**
	 * 上级资源
	 * */
	private SysTipVo sysTipVo;
	/**
	 * 父编号列表
	 * */
	private String parentIds;
	private Boolean available = Boolean.TRUE;
	private User user;
	/**
	 * 排序
	 * */
	private int sort=0;

	public SysTipVo() {
		super();
	}

	public SysTipVo(String id) {
		super(id);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Override
	public String getRemarks() {
		return remarks;
	}

	@Override
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getParentIds() {
		return parentIds;
	}

	public void setParentIds(String parentIds) {
		this.parentIds = parentIds;
	}

	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}

	public boolean isRootNode() {
		return parentId.equals("0");
	}
	public Boolean getAvailable() {
		return available;
	}

	public void setAvailable(Boolean available) {
		this.available = available;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	public String makeSelfAsParentIds() {
		return getParentIds() + getId() + "/";
	}

	public SysTipVo getSysTipVo() {
		return sysTipVo;
	}

	public void setSysTipVo(SysTipVo sysTipVo) {
		this.sysTipVo = sysTipVo;
	}
}
